package cluedo.messages;

import msgcomm.RmiReceiver;
import msgcomm.messages.RequestPayload;

public class RequestChangePlayGroupOwner extends RequestPayload {

	private static final long serialVersionUID = 190164995873049734L;

	/**
	 * nome del gruppo che ha cambiato proprietario
	 */
	public final String groupName;
	
	/**
	 * Transceiver del nuovo proprietario
	 */
	public final RmiReceiver newOwnerTrans;
	
	/**
	 * nickname del nuovo proprietario
	 */
	public final String newOwnerName;
	
	public RequestChangePlayGroupOwner(String groupName, String newOwnerName, RmiReceiver newOwnerTrans){
		
		this.groupName=groupName;
		this.newOwnerName=newOwnerName;
		this.newOwnerTrans=newOwnerTrans;
		
	}
	
	@Override
	public String toString() {
		return "RequestChangePlayGroupOwner{"+groupName + ", nuovo proprietario "+newOwnerName+"}";
	}
}
